package com.example.administrator.yuejian_15.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;


import com.example.administrator.yuejian_15.bean.PxOrderBean;

import java.util.List;

public class PxOrderAdapter extends BaseAdapter<PxOrderBean> {
    public PxOrderAdapter(Context context, List<PxOrderBean> items, int layoutResourse) {
        super(context, items, layoutResourse);
    }
    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
        ItemViewHolder itemViewHolder=(ItemViewHolder) holder;
        PxOrderBean pxOrderBean=items.get(position);

        final String ornumber = pxOrderBean.getOrnumber();
        final String pxname = pxOrderBean.getPxname();
        final String pxorprice=pxOrderBean.getPxorprice();


        itemViewHolder.tv1.setText("订单号:"+ornumber);
       itemViewHolder.tv2.setText("名称:"+pxname);
        itemViewHolder.tv3.setText("总价:"+pxorprice);

    }
}
